package com.by.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.common.dao.bean.Page;


import java.util.List;
import java.util.Map;

/**
 * @author ServivE
 * @version 0.1
 * @className MyBaseMapper
 * @description
 * @date 2024/11/6 20:19
 * @since jdk17
 */

/**
 * Mapper底层 要求所有的mapper类继承此类
 * @param <T>
 */
public interface MyBaseMapper<T> extends BaseMapper<T>,ICurd<T> {

    /**
     * 查询列表
     * @param condition
     * @return
     * @param <P>
     */
    <P extends Page> List<Map> query(P condition);
}
